package com.hexiang.model;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;



/**
 * 用户实体类
 */
@TableName("t_user")
public class MybatisUser implements Serializable {
    /** id */
    @NotBlank(message = "id不能为空")
    private String id;
    /** 姓名 */
    @NotBlank(message = "姓名不能为空")
    private String name;
    /** 年龄 */
    @NotNull(message = "年龄不能为空")
    private Integer age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
